//
//  ZZphotoSet.m
//  ZeroCorner
//
//  Created by lanou3g on 15/11/19.
//  Copyright © 2015年 Zero_Zhou. All rights reserved.
//

#import "ZZphotoSet.h"
#import "ZZphotoDetail.h"
@implementation ZZphotoSet
+ (instancetype)photoSetWith:(NSDictionary *)dict
{
    ZZphotoSet *photoSet = [[ZZphotoSet alloc]init];
    [photoSet setValuesForKeysWithDictionary:dict];
    
    NSArray *photoArray = photoSet.photos;
    NSMutableArray *temArray = [NSMutableArray arrayWithCapacity:photoArray.count];
    
    for (NSDictionary *dict in photoArray) {
        ZZphotoDetail *photoModel = [ZZphotoDetail photoDetailWithDict:dict];
        [temArray addObject:photoModel];
    }
    photoSet.photos = temArray;
    
    return photoSet;
}

@end
